In forms or database tables, you can search through data fields, list boxes, and check boxes for specific values.
フォームおよびデータベーステーブルでは、データフィールド、リストボックス、および、チェックボックスから特定の値を検索できます。
|
To access this command...この機能の見つけ方 |
When searching a table, the data fields of the current table are searched. When searching in a form, the data fields of the table linked with the form are searched.
テーブルの検索時に、現在のテーブルのデータフィールドが検索されます。フォームの検索時に、フォームに関連付けられたテーブルのデータフィールドが検索されます。
![]() | The search described here is carried out by Office. If you want to use the SQL server to search in a database, then you should use the Form-based Filters icon on the Form Bar.
ここで指定した検索が Office によって実行されます。SQL サーバーを使ってデータベース内を検索する場合は、フォームバーのアイコン フォームを基にしたフィルタ を使用します。 |
The search function is also available for table controls. When calling the search function from a table control, you can search each column of the table control corresponding to the database columns of the linked database table.
また、この検索機能はテーブルコントロールでも使用できます。テーブルコントロールから検索機能を呼び出すと、リンク先のデータベーステーブルのデータベース列に対応するテーブルコントロールの各列を検索できます。
Specifies the type of search.
検索の種類を指定します。
Enter the search term in the box or select it from the list. The text under the cursor is already copied into the Text combo box. Note that while running a search in a form, tabs and line breaks cannot be processed.
検索語句をボックス内に入力するか、リストから選択するかします。 カーソルの下にあるテキストが、テキスト コンボボックスに予めコピーされます。フォーム内で検索を実行している間は、タブと行ブレークが処理されないことに注意してください。
Your search terms will be saved as long as the table or the formula document is open. If you are running more than one search and you would like to repeat the search term, you can select a previously used search term from the combo box.
テーブルまたはフォームドキュメントが開いている限り、検索対象の語句が保存されます。検索を何回か行う場合で、検索の語句を繰り返し使用するときは、以前に使用した語句をコンボボックスから選択することもできます。
Specifies that fields will be found that contain no data.
データを含んでいないフィールドを検索するように指定します。
Specifies that fields will be found that contain data.
データが入っているフィールドを検索するように指定します。
Specifies the fields for the search.
検索するフィールドを指定します。
Specifies the logical form in which you want the search to take place.
検索を実行する論理フォームを指定します。
![]() | The Form combo box is only visible if the current document is a form document with more than one logical form. It does not appear during a search in tables or queries.
フォーム コンボボックスが表示されるのは、現在のドキュメントがひとつ以上の論理フォームを含むフォームドキュメントである場合に限られます。テーブルまたはクエリーの検索時には表示されません。 |
Form documents may contain multiple logical forms. These are individual form components, which are each linked to a table.
フォームドキュメントには複数の論理フォームを含めることができます。論理フォームは個別のフォームコンポーネントであり、それぞれがテーブルに関連付けられています。
The Form combo box contains the names of all logical forms for which controls exist.
コンボボックス フォーム には、コントロールが存在するすべての論理フォームの名前が表示されます。
Searches through all fields. If you are running a search in a table, all fields in the table will be searched. If you are running a search in a form, all fields of the logical form (entered under Form) will be searched. If you are running a search in a table control field, all columns that are linked to a valid database table field will be searched.
すべてファイルが検索されます。 テーブル内で検索を実行した場合は、テーブル内のすべてのフィールドが検索されます。フォーム内で検索を実行した場合は、(フォーム で入力した) 論理フォームのフィールドがすべて検索されます。テーブルコントロールフィールド内で検索を実行した場合は、有効なデータベーステーブルフィールドに関連付けられているすべての列が検索されます。
Note that the fields of the current logical form do not have to be identical to the fields of the form document. If the form document contains fields that point to multiple data sources (that is, multiple logical forms), the All Fields option will only search for the fields linked to data sources in the form document.
現在の論理フォームのフィールドとフォームドキュメントのフィールドは必ずしも一致する必要がないことに注意してください。フォームドキュメントに複数のデータソース (つまり複数の論理フォーム) を参照するフィールドが含まれている場合、オプション すべてのフィールド ではフォームドキュメント内のデータソースに関連付けられたフィールドのみが検索されます。
Searches through a specified data field.
指定したデータフィールド内が検索されます。
Defines settings to control the search.
検索に関する設定を指定します。
Specifies the relationship of the search term and the field contents. The following options are available:
検索語句とフィールド内容の関係を指定します。 指定可能なオプションは下記のとおりです。
|
anywhere in the field
|
Returns all fields containing the search pattern anywhere in the field.
|
|
beginning of field
|
Returns all fields containing the search pattern at the beginning of the field.
|
|
end of field
|
Returns all fields containing the search pattern at the end of the field.
|
|
entire field
|
Returns all fields containing the search pattern as an exact match to the contents of the field.
|
![]() | If the Wildcard expression check box is marked, this function is not available.
ワイルドカード文字検索対象 のボックスを選択すると、この機能は使えません。 |
Specifies that all field formats are considered when searching in the current document. Field formats are all visible formats that are created using the following possibilities:
現在のドキュメント内を検索する際にフィールドすべての書式を検索するように指定します。 フィールド書式とは、次のいずれかによって作成される表示用の書式すべてを指します。
in table design mode for field properties,
フィールド属性におけるテーブルのデザイン
in data source view on column formatting,
列の書式設定に関するデータ表示
in forms on control properties.
コントロール属性に関するフォーム
If the Apply field format box is marked, the data source view of the table or form is searched using the formatting set there. If the box is not marked, the database is searched using the formatting saved in the database.
データを表のデータ表示またはフォームで検索する場合には、検索時に現在の目に見える書式設定を考慮するのか、あるいはデータベースの標準書式設定を考慮するのかを選択できます。フィールドの書式設定を利用 のボックスを選択すると、そこで設定されている書式設定の表データ表示またはフォームで検索し、このボックスを選択しないと、そこに保存されている書式設定のデータベースで検索を実行します。
Example:
例 :
You have a date field, which is saved in "DD.MM.YY" format in the database (for example, 17.02.65). The format of the entry is changed in the data source view to "DD MMM YYYY" (17 Feb 1965). Following this example, a record containing February 17 is only found when the Apply field format option is on:
データベース内に、「DD.MM.YY」の書式で日付フィールドが保存されています (例えば 17.02.65)。この書式がデータソースの表示では次のように変更されます: 「DD MMM YYYY」(17 Feb 1965)。この例で「February 17」を含むレコードが検索されるのは、オプションフィールドの書式設定を使用を選択したときだけです:
|
Apply field format
|
Search pattern
|
|
on
|
"Feb" is returned, but not "2".
|
|
off
|
"2" is returned, but not "Feb".
|
It is recommended that you always search using field formatting.
フィールドの書式設定を使って検索を行うことをお勧めします。これを行わないと(内部で)標準書式の設定が行われ、意図しない検索結果となる可能性があるからです。
The following examples show possible issues when searching without field formatting. These issues depend on the database used and only occur for certain internal default formatting:
次の例は、フィールドの書式設定が行われていない検索において考えられる問題点を示しています。これらのケースは使用したデータベースに左右され、特定の内部における標準の書式設定が行われた場合に限って発生します。
|
Search results
|
Cause
|
|
"5" returns "14:00:00" as a time
|
Time fields are not defined for dBASE databases and must be simulated. To internally display the time "14:00:00", a 5 is necessary.
|
|
"00:00:00" returns all records of a standard date field
|
The database stores a date value internally using a combined date/time field.
|
|
"45.79" does not return "45.79" although the entire field option is selected under Position.
|
The view shown does not match what is stored internally. For example, if value 45.789 is stored in the database as a field of type Number/Double and the shown formatting is set to display only two decimals, "45.79" is only returned in searches with field formatting.
|
In this case, standard formatting is formatting that refers to the internally stored data. It is not always visible to the user, especially if it is used for simulating data types (for example, time fields in dBASE databases). This depends on the database used and the individual data type. Searching with field formatting is appropriate if you only want to find what is actually shown. This includes fields of type Date, Time, Date/Time and Number/Double.
この場合、標準書式は、内部保存されたデータを参照する書式です。この書式は、特にデータ型をシミュレーションする場合 (たとえば、dBASE データベースの時間フィールド) は、必ずしもユーザーに表示されません。表示されるかどうかは、使用するデータベースおよび個々のデータ型によって異なります。実際に表示される書式だけを検索する場合は、フィールド書式で検索するのが適切です。フィールド書式には、日付、日付/時刻および番号/二重などの種類のフィールドがあります。
However, searching without Apply field format is appropriate for larger databases with no formatting issues, because it is faster.
ただし、書式にかかわらない検索を大規模なデータベースに対して実行する場合には、フィールドの書式設定を使用 を選択しない方が高速になります。
If you are searching the values of check boxes, and Apply field format is on, then you will receive a "1" for marked check boxes, a "0" for unmarked check boxes, and an empty string for undefined (tristate) check boxes. If the search has been carried out with Apply field format set to off, you will see the language-dependent default values "TRUE" or "FALSE".
チェックボックスの値を検索していて、「フィールドの書式設定を使用」 がオンになっている場合、オンになっているチェックボックスからは「1」が、オフになっているチェックボックスからは「0」が、未定義 (3 倍のステータス) チェックボックスには空の文字列が返されます。 「フィールドの書式設定を使用」 がオフになっている状態で検索が行われた場合、言語に依存する標準値は「TRUE」または「FALSE」になります。
If you use Apply field format when searching in list boxes, you find the text displayed in list boxes. If you do not use Apply field format, you will find the contents corresponding to the standard field format.
リストボックスの検索で フィールドの書式設定を使用 をオンにすると、リストボックスに表示されているテキストが検索されます。フィールドの書式設定を使用をオンにしない場合は、標準フィールド書式の内容が検索されます。
Specifies that upper and lower case are taken into consideration during the search.
検索時に大文字と小文字を区別するように指定します。
Specifies that the search process will run in reverse direction, from the last to the first record.
検索処理が逆方向、つまり末尾レコードから先頭レコードの順に行われるように指定します。
Restarts the search. A forward search restarts with the first record. A backwards search restarts with the last record.
検索を再開します。順方向検索は、先頭のレコードから再開されます。逆方向検索は、末尾のレコードから再開されます。
You can use the following wildcards:
次のワイルドカード文字を使用できます。
|
Wildcards
|
Meaning
|
Example
|
|
?
|
for exactly one arbitrary character
|
"?loppy" returns "Floppy"
"M?ller" returns, for example, Miller and Moller
|
|
*
|
for 0 or more arbitrary characters
|
"*-*" returns "ZIP-Drive" and "CD-ROM"
"M*er" returns all entries starting with an "M" and ending in "er" (for example, Miller, Moller, Mather)
|
If you want to search for the actual characters ? or *, preface them with a backslash: "\?" or "\*". However, this is only necessary when Wildcard expression is enabled. When the option is not enabled, the wildcard characters are processed like normal characters.
[PO-fuzzy@shared\02.po] ? または * そのものを検索するには、「\?」または「\*」のように円記号を文字の前に付けます。ただし、これは ワイルドカードを使用 をオンにした場合にのみ必要です。オプションがオフなら、ワイルドカード文字は通常の文字と同様に処理されます。
Searches with regular expressions. The same regular expressions that are supported here are also supported in the Office Find & Replace dialog.
[PO-fuzzy@shared\02.po] 正規表現を使って検索されます。 ここでサポートされる正規表現は、Office の 検索と置換 ダイアログ でもサポートされています。
Searching with regular expressions offers more options than searching with wildcard expressions. If you search with regular expressions, the following characters correspond to those used in searches with wildcards:
正規表現による検索は、ワイルドカード文字検索よりも可能性の幅が広くなりますが、通常の使用ではワイルドカード文字検索でも十分ですし、扱いも容易です。正規表現による検索を実行する場合、次の記号がワイルドカード文字検索の記号と対応しています。
|
Search with wildcard expression
|
Search with regular expressions
|
|
?
|
.
|
|
*
|
.*
|
The State line shows the records returned by the search. If the search reaches the end (or the beginning) of a table, the search is automatically continued at the other end.
ステータス には検索にヒットしたデータ行が表示されます。テーブルの最後 (あるいは先頭) まで検索し終わった場合は、自動的に最初から繰り返して検索が行われます。
In very large databases, finding the record in reverse search order can take some time. In this case, the status bar informs you that the records are still being counted.
データ記録が非常に大きい場合には、バック方向の検索はレコードを確認するのに若干時間がかかります。ステータス行は、レコードをカウント中であるという情報を表示します。
If the search is successfully completed, the corresponding field in the table is highlighted. You can continue the search by clicking the Search button again. You can cancel a search process by clicking the Cancel button.
検索が一致すると、テーブル内の対応するフィールドが強調表示されます。ボタン 検索 をもう一度クリックすると、検索を続けることができます。ボタン キャンセル をクリックすると、検索処理をキャンセルできます。
Closes the dialog. The settings of the last search will be saved until you quit Office.
ダイアログを閉じます。最後に実行された検索の設定は、Office を終了するまで保存されています。
If several tables or forms are open, you can set different search options for each document. When you close the documents only the search options of the document last closed are saved.
テーブルやフォームを複数開いている場合は、ドキュメントごとに異なる設定オプションを指定できます。ドキュメントを閉じる場合は、最後に閉じたドキュメントに関する設定のみが記録されます。